/* @author adminz
 *  @created on 08.12.2008 15:28:51
 */
package de.fhhannover.inform.wari.grp8.spiel;

import java.util.Enumeration;
import java.util.Vector;

public class StrategyHandlerTester {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String[] id = new String[14];
		String[] grp_name = new String[14];
		String[] path = new String[14];
		
		int i = 0;
		Vector<String> vec = StrategyHandler.getStrategyHandler().getStrategyIDs();
		Enumeration<String> el=vec.elements();
		while (el.hasMoreElements()){
			id[i] = el.nextElement();
			System.out.println("ID "+id[i]);
			i++;
		}
		i=0;
		vec = StrategyHandler.getStrategyHandler().getStrategyNames();
		el=vec.elements();
		while (el.hasMoreElements()){
			grp_name[i] = el.nextElement();
			System.out.println("grp_name "+grp_name[i]);
			i++;
		}
		i=0;
		vec = StrategyHandler.getStrategyHandler().getStrategyPaths();
		el=vec.elements();
		while (el.hasMoreElements()){
			path[i] = el.nextElement();
			System.out.println("Path "+path[i]);
			i++;
		}
		System.out.println("Path at 0 :"+vec.elementAt(0));
		System.out.println("Path at 1 :"+vec.elementAt(1));
		System.out.println("Path at 2 :"+vec.elementAt(2));
		System.out.println("Class instanz :"+StrategyHandler.getStrategyHandler().getStrategyByPathIndex(0).getClass().getName());
		
	}

}
